-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: wcow: add support for bind and cache mounts #5708
base: master
Are you sure you want to change the base?
Conversation
8bf0b5a
to
bc2decc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the fix LGTM
bc2decc
to
ec20b95
Compare
I have done some testing on this with cache mounts and it works! But I'm a bit confused by the mount target path. It doesn't seem to be possible to specify an absolute path, specifying a full windows path "C:/Users/ContainerAdministrator/.conan2/p" does not work:
If I specify "/Users/ContainerAdministrator/.conan2/p" is seems to be relative to the current set WORKDIR and not the root of the C:/ disk which I think is inconsistent with the linux implementation. |
ec20b95
to
9c74564
Compare
Thanks for testing, let me take a look at this on Monday.
---
// sent from a tiny device while on the move. forgive the tie pose.
…On Fri, Feb 7, 2025, 15:18 Daniel Nilsson ***@***.***> wrote:
I have done some testing on this with cache mounts and it works! But I'm a
bit confused by the mount target path.
I'm running the binaries from this build:
https://github.com/moby/buildkit/actions/runs/13193504481
It doesn't seem to be possible to specify an absolute path, specifying a
full windows path "C:/mycache" does not work:
RUN --mount=type=cache,id=conan-cache-v1,sharing=locked,target=C:/Users/ContainerAdministrator/.conan2/p `
failed to create shim task: hcs::CreateComputeSystem si4wd93a8a3gf69wkaqhu86uz: The parameter is incorrect.: unknown
If I specify "/Users/ContainerAdministrator/.conan2/p" is seems to be
relative to the current set WORKDIR and not the root of the C:/ disk which
I think is inconsistent with the linux implementation.
—
Reply to this email directly, view it on GitHub
<#5708 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB7ZELBM76SSE6V7EIIZRD2OSQCFAVCNFSM6AAAAABWTGIERSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBSG43DQNBYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks :) Here is a small reproduce:
|
Currently, mounts are not supported for WCOW builds, see moby#5678. This commit introduces support for bind and cache mounts. The remaining two require a little more work and consultation with the platform teams for enlightment. WIP Checklist: - [x] Support for bind mounts - [x] Support for cache mounts - [x] add frontend/dockerfile integration tests - [ ] add client integration tests - [ ] add documentatio - [ ] add note and plan on the missing feature(s) i.e. secret mounts (that need tmpfs) - [ ] spec out / second attempt for SSH mount Fixes moby#5603 Addresses part of moby#5678 Signed-off-by: Anthony Nandaa <[email protected]>
9c74564
to
261ee88
Compare
Currently, mounts are not supported for WCOW builds, see #5678. This commit introduces support for bind and cache mounts. The remaining two require a little more work and consultation with the platform teams for enlightment.
WIP Checklist:
Addresses part of #5678
Fixes #5603
Demo
Prep the context directory:
Dockerfile:
Build command:
Build log: